package com.cavy.platform.client.domain;

import lombok.Data;

/**
 * @author 唐旭
 * @Date 2018/7/18
 */
@Data
public class ContainerEnvironment {
    public static final String SPLIT = "=";
    public static final String WORKSPACE_NAME = "WORKSPACE_NAME";
    public static final String PROJECT_NAME = "PROJECT_NAME";
    public static final String PIPELINE_NAME = "PIPELINE_NAME";
    public static final String STAGE_NAME = "STAGE_NAME";
    public static final String INDEX = "INDEX";
    public static final String CAVY_DIR = "CAVY_DIR";
    public static final String JOB_NUMBER = "JOB_NUMBER";
    private String name;
    private String value;

    public ContainerEnvironment() {
    }

    public ContainerEnvironment(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String toEnvString() {
        return name + SPLIT + value;
    }
}
